/**
 * 
 * 广州锐鹏计算机科技有限公司（www.ruipengkj.com）
 * 
 * 
 * Copyright (c) 2011-2012 RUIPENGKJ.Co.Ltd. All rights reserved.
 * 
 * */
package com.ruipengkj.component;

import java.awt.Component;
import java.awt.GridLayout;

import javax.swing.JPanel;

public class JPanelGridLayoutComponent extends JPanel {

	private static final long serialVersionUID = 1L;
	public JPanelGridLayoutComponent(Component[] comp, int rows, int cols) {
		GridLayout gridLayout = new GridLayout(rows, cols);
		this.setLayout(gridLayout);
		this.setOpaque(false);
		int length = comp.length;
		for(int i = 0; i < length; ++i) {
			this.add(comp[i]);
		}
	}
}
